package com.heihei.imgpreview.dto;


import java.awt.image.BufferedImage;
import java.io.File;

/**
 *  存储img信息
 *
 * @version 1.0
 * @since JDK1.8
 * @author duanhengfei
 * @date 2021年01月29日 16:11:35
 */
public class ImgInfoDTO {
    /** 宽度 */
    private Integer width;
    /** 高度 */
    private Integer height;
    /** 文件 */
    private File file;
    /** 图片信息 */
    BufferedImage bufferedImage;
    /** 相对路径 */
    private String relativePath;
    /** 横向还是纵向（1 横，  2纵） */
    private Integer accrossOrVerticalFlag;

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public File getFile() {
        return file;
    }

    public void setFile(File file) {
        this.file = file;
    }

    public String getRelativePath() {
        return relativePath;
    }

    public void setRelativePath(String relativePath) {
        this.relativePath = relativePath;
    }

    public Integer getAccrossOrVerticalFlag() {
        return accrossOrVerticalFlag;
    }

    public void setAccrossOrVerticalFlag(Integer accrossOrVerticalFlag) {
        this.accrossOrVerticalFlag = accrossOrVerticalFlag;
    }

    public BufferedImage getBufferedImage() {
        return bufferedImage;
    }

    public void setBufferedImage(BufferedImage bufferedImage) {
        this.bufferedImage = bufferedImage;
    }
}